/**
 * @author wangze
 * @date 2020-06-11 22:14.
 * @email 595702583@qq.com
 **/

import request from '@/utils/request'

/**
 * 获取当前流程节点状态
 */
export function getCurrentStepInfo(data) {
  return request({
    url: '/HNFlowApi/api/ApprovalApi/GetCurrentStepInfo',
    method: 'post',
    data
  })
}
/**
 * 获取当前用户信息
 */
export function getNewInstallBaseInfoById(newInstallId) {
  return request({
    url: '/HNFlowApi/api/NewInstallApi/GetNewInstallBaseInfoById',
    method: 'get',
    params: { newInstallId }
  })
}
/**
 * 获取当前用户信息
 */
export function getAllNewInstallBaseInfoById(newInstallId) {
  return request({
    url: '/HNFlowApi/api/NewInstallApi/getAllNewInstallBaseInfoById',
    method: 'get',
    params: { newInstallId }
  })
}
/**
 * 获取用户信息列表
 * @param newInstallId
 */
export function getNewInstallBaseInfoUserList(newInstallId) {
  return request({
    url: '/HNFlowApi/api/NewInstallApi/GetNewInstallBaseInfoUserList',
    method: 'get',
    params: { newInstallId }
  })
}

/**
 * 获取水表信息
 * @param newInstallId
 */
export function getNewInstallWaterDeviceDetailInfoList(newInstallId) {
  return request({
    url: '/HNFlowApi/api/NewInstallApi/GetNewInstallWaterDeviceDetailInfoList',
    method: 'get',
    params: { newInstallId }
  })
}
/**
 * 提交表单
 * @param data
 */
export function flowAction(data) {
  return request({
    url: '/HNFlowApi/api/ApprovalApi/FlowAction',
    method: 'post',
    data
  })
}
export function findFlowApprovers(data) {
  return request({
    url: '/HNFlowApi/api/ApprovalApi/FindFlowApprovers',
    method: 'post',
    data
  })
}
